﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using IQKS.AWP.BusinessAccessLayer;
using IQKS.AWP.BusinessObject;


using System.Web.Security;

public partial class Admin_Test : System.Web.UI.Page
{

    protected void btn_Click(object sender, EventArgs e)
    {
        MembershipUser User = Membership.GetUser(txtUserNAme.Text.Trim(), false);

        bool resultpassword;
        resultpassword = User.ChangePassword(txtPass.Text.Trim(), "test@123456");
        

        Response.Write("</br></br>Password- " + Convert.ToString(resultpassword));


        bool resultlogin;
        resultlogin = Membership.ValidateUser(Membership.GetUserNameByEmail(txtUserNAme.Text.Trim()), txtPass.Text.Trim());

        

        Response.Write("</br></br>login- " + Convert.ToString(resultlogin));

    }
}